<template>
    <el-table-column v-for="item in cols" :key="item.prop" v-bind="item">
        <columns v-if="item.children && item.children.length!=0" :cols="item.children" />
        <template v-for="(_, key) in $slots" >
            <slot :name="key" v-bind="props"></slot>
        </template>

    </el-table-column>
</template>

<script>
import { defineComponent } from 'vue'

export default defineComponent({
    name: 'columns',
    props: {
        cols: {
            type: Array,
            default: () => []
        }
    },
    setup() {
        
    },
})
</script>
